package com.kimi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.kimi.pojo.domain.User;
import com.kimi.pojo.request.UserLoginRequest;
import com.kimi.pojo.request.UserRegisterRequest;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
* @author Kimi
* @description 针对表【tb_user(用户表)】的数据库操作Service
* @createDate 2025-03-16 20:47:14
*/
public interface UserService extends IService<User> {
    User userRegister(UserRegisterRequest userRegisterRequest);
    User userLogin(UserLoginRequest userLoginRequest, HttpServletRequest request);
    User getSafetyUser(User originUser);

    Boolean userLogout(HttpServletRequest request);

    User getCurrentUser(HttpServletRequest request);

    boolean isAdmin(HttpServletRequest request);

    List<User> searchUser(String username);


    List<User> searchUsersByTags(List<String> tagNameList);

    Integer updateUser(User user,HttpServletRequest request);
}
